export default {
    getInitCodes(source = []) {
        return source.map(item => {
            let list = item.split('|');
            return {
                ticketCode: list[0] || '',
                verifyCode: list[1] || '',
            };
        });
    },
    setCodeClear(e) {
        if (e) {
            let regs = /[`~!@#$^\-&*()=|{}':;',\\\[\]\.<>\/?~！@#￥……&*（）——|{}【】'；：""'。，、？\s]/g;
            e = e.replace(regs, '');
        }
        return e;
    },
};
